package com.qdu.mapper;

import java.math.BigInteger;
import java.util.Map;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.qdu.entity.Bussiness;



/**
 ** 创建AccountMapper接口，定义对Account表的操作有哪些
 *
 * @author Anna
 */
public interface BussinessMapper {

	void insert(Bussiness bus);

	void update(Bussiness bus);

	void delete(Bussiness bus);
	///...........
	@Select("select * from bussiness where bid=#{bid}")
	Bussiness getOneById(BigInteger bid);
	//计算在网企业的数量
	
	//l-注册企业信息
	@Insert("insert into bussiness(bname,bpro,bimg,bcity,baddress,number,bdetails)"
			+ "values(#{bname},#{bpro},#{bimg},#{bcity},#{baddress},#{number},#{bdetails})")
	int insertBuss(Bussiness buss);
	
}
